import request from '@/utils/request'

// 获取当前扫码口的拆解单
export function getUnbindingOrder() {
  return request({
    url: 'api/unbinding/getNewUnbindingOrder',
    method: 'get'
  })
}

// 分配当前待拆解的拆解单
export function distribute(data) {
  return request({
    url: `api/unbinding/getNewUnbindingOrder/${data.unbindingOrderCode}/${data.stationName}`,
    method: 'get'
  })
}

// 获取所有拆解站信息
export function getAllStationInfoAPI() {
  return request({
    url: 'api/unbinding/getAllStationStatus',
    method: 'get'
  })
}

export default { getUnbindingOrder, distribute, getAllStationInfoAPI }
